package com.zhuiyun.project.api.physician.service;

import com.zhuiyun.project.api.physician.entity.DoctorAudit;
import com.zhuiyun.project.api.physician.model.AppPhysicianModel;
import com.zhuiyun.project.common.response.CommonResult;
import com.zhuiyun.project.util.pageUtil.PageRequest;
import com.zhuiyun.project.util.pageUtil.PageResult;
import org.springframework.web.multipart.MultipartFile;

public interface PhysicianService {


    /**
     * @param appPhysicianModel
     * @Author kdj
     * @Description 申请成为医师
     * @Date 2023/8/3 15:16
     * @Return com.zhuiyun.project.common.response.CommonResult
     */
    CommonResult insertPhysician(AppPhysicianModel appPhysicianModel);

    /**
     * @param userId
     * @Author kdj
     * @Description 获取医师的个人信息
     * @Date 2023/8/3 16:16
     * @Return com.zhuiyun.project.common.response.CommonResult
     */
    CommonResult getPhyInfo(int userId);

    /**
     * 想成为医师查询
     *
     * @return java.util.List<com.zhuiyun.project.api.physician.entity.appPhysician>
     * @author 温
     * @date 2023/6/8 10:30
     * @parameter []
     */
    PageResult physicianList(String doctorName, PageRequest pageRequest);




    /**
     * 查询医生信息
     *
     * @return com.zhuiyun.project.util.pageUtil.PageResult
     * @author 温
     * @date 2023/6/13 10:40
     * @parameter [doctorName, pageRequest]
     */

    PageResult PhysicianListState(String queryUserName, PageRequest pageRequest);


    /**
     * 医生管理逻辑删除
     *
     * @return int
     * @author 温
     * @date 2023/6/13 10:39
     * @parameter [id]
     */
    int PhysicianUpdate(Integer id);


    /**
     * @param file
     * @param file1
     * @param file2
     * @param appPhysicianModel
     * @Author kdj
     * @Description 后台修改医师信息
     * @Date 2023/8/5 10:39
     * @Return int
     */
    CommonResult updatePhy(MultipartFile file, MultipartFile file1, MultipartFile file2, AppPhysicianModel appPhysicianModel);

    /**
     * @param file

     * @param appPhysicianModel
     * @Author ys
     * @Description 后台修改用户信息
     * @Date 2023/8/5 10:39
     * @Return int
     */
    CommonResult updateUser(MultipartFile file, AppPhysicianModel appPhysicianModel);
    /**
     * @param file
     * @param file1
     * @param file2
     * @param appPhysicianModel
     * @Author kdj
     * @Description 后台添加医师信息
     * @Date 2023/8/5 14:26
     * @Return com.zhuiyun.project.common.response.CommonResult
     */
    CommonResult addPhy(MultipartFile file, MultipartFile file1, MultipartFile file2, AppPhysicianModel appPhysicianModel);

    /**
    * @Author kdj
    * @Description 审核通过医师
    * @Date 2023/8/5 21:42
    * @Return com.zhuiyun.project.common.response.CommonResult
    * @param doctorAudit
    */
    CommonResult requestOk(DoctorAudit doctorAudit);

    /**
    * @Author kdj
    * @Description 审核不通过医师
    * @Date 2023/8/6 0:25
    * @Return com.zhuiyun.project.common.response.CommonResult
    * @param doctorAudit
    */
    CommonResult requestNo(DoctorAudit doctorAudit);
    /**
     * @Author ys
     * @Description 根据医师id获取userid
     * @Date 2023/8/6 0:25
     * @Return com.zhuiyun.project.common.response.CommonResult
     * @param id
     */
    int getPhysicianUserid(int id);
}
